<script>
import {checkVersion} from '@/common/js/versionUtil.js'

export default {
	onLaunch: function() {
		console.log('App Launch');
	},
	onShow: function() {
		console.log('App Show');
		console.log(process.env.NODE_ENV);
		// #ifdef APP-PLUS
		if(process.env.NODE_ENV==='development'){		// 区分开发环境
			return 
		}
		uni.$u.sleep(1000).then(()=>{
			checkVersion('rohm-time-op')		//参数是apk的名字
		})
		// #endif

	},
	onHide: function() {
		// console.log('App Hide');
	}
};
</script>

<style lang="scss">
/*每个页面公共css */

/* uview样式*/
@import '@/uni_modules/uview-ui/index.scss';
/* 自定义css */
@import 'common/css/demo.scss';
</style>
